package com.stylefeng.guns.modular.system.constants;

import com.stylefeng.guns.core.common.constant.state.GpType;
import com.stylefeng.guns.core.common.constant.state.ZgpType;

public class ImportContants {

	private static final String IMPORT_PATH = "http://data.eastmoney.com/DataCenter_V3/gdhs/GetList.ashx?reportdate=&market=%d&changerate==&range==&pagesize=100&page=%d&sortRule=-1&sortType=NoticeDate";

	private static final String IMPORT_PRICE_PATH = "http://pdfm.eastmoney.com/EM_UBG_PDTI_Fast/api/js?rtntype=5&token=4f1862fc3b5e77c150a2b985b12db0fd&id=%s&type=r&iscr=false&_=1534931971474";
	
	private static final String GD_IMPORT_PATH = "http://data.eastmoney.com/DataCenter_V3/gdfx/stockholder.ashx?code=%s&date=%s&type=%s";
	
	private static final String BRANK_IMPORT_PATH = "http://data.eastmoney.com/DataCenter_V3/stock2016/BusinessRanking/pagesize=50,page=%d,sortRule=-1,sortType=BCount1DC,startDate=%s,endDate=%s,gpfw=0,js=data_tab_1.html?rt=25461240";
	
	private static final String GPC_WT_PATH = "https://hq.kaipanla.com/w1/api/index.php?PhoneOSNew=2&StockID=%s&Tur=100&Vol=1000&a=GetWeiTuo&apiv=w12&c=StockL2Data&st=500";
	
	private static final String HY_BRANK_IMPORT_PATH = "http://data.eastmoney.com/DataCenter_V3/stock2016/ActiveStatistics/pagesize=50,page=%d,sortRule=-1,sortType=JmMoney,startDate=%s,endDate=%s,gpfw=0,js=data_tab_1.html?rt=25462210";
	
	private static final String HY_BRANK_IMPORT_DETAIL_PATH = "http://data.eastmoney.com/DataCenter_V3/stock2016/jymx.ashx?pagesize=50&page=%d&js=abiExrSB&param=&sortRule=-1&sortType=&gpfw=0&code=%d&rt=25463842";
	
	private static final String DT_GD_IMPORT_PATH = "http://stock.quote.stockstar.com/stockinfo_share/circulate.aspx?code=%s&dt=%s";
	
	
	private static final String DAY_MACD_IMPORT_PATH = "http://cn0512.gitee.io/ykquantpublisher/strategy/day-macd.html";
	
	private static final String DAY_KDJ_IMPORT_PATH = "http://cn0512.gitee.io/ykquantpublisher/strategy/day-kdj.html";
	
	private static final String DAY_MACD_KDJ_IMPORT_PATH = "http://cn0512.gitee.io/ykquantpublisher/strategy/day-macdkdj.html";
	
	private static final String YIDIAN_LTGD_IMPORT_PATH = "http://www.yidiancangwei.com/gudong/sdlt_%s_%s.html";
	
	private static final String YIDIAN_RS_IMPORT_PATH = "http://www.yidiancangwei.com/gudong/renshu_%s.html";
	
	private static final String CONTROL_DATA_IMPORT_PATH = "http://dcfm.eastmoney.com/em_mutisvcexpandinterface/api/js/get?type=QGQP_LB&token=70f12f2f4f091e459a279469fe49eca5&cmd=&st=JGCYD&sr=-1&p=%d&ps=50&js={pages:(tp),data:(x)}&filter=&rt=50942368";
						
	private static final String DJG_DATA_IMPORT_PATH = "http://datainterface.eastmoney.com/EM_DataCenter/JS.aspx?type=GG&sty=GGC&p=%d&ps=30&js={pages:(pc),data:[(x)]}&code=%s&rt=50948008";
	
	private static final String NEWPRICE_DATA_IMPORT_PATH = "http://nufm.dfcfw.com/EM_Finance2014NumericApplication/JS.aspx?type=ct&st=(BalFlowMain)&sr=-1&p=%d&ps=200&js={pages:(pc),date:%222014-10-22%22,data:[(x)]}&token=894050c76af8597a853f5b408b759f5d&cmd=C._AB&sty=DCFFITA&rt=50967976";
	
	private static final String HSGT_DATA_IMPORT_PATH = "http://data.eastmoney.com/DataCenter_V3/stock2016/jymx.ashx?pagesize=50&page=%d&js=&param=&sortRule=-1&sortType=&gpfw=0&code=%d&rt=25490024";
	
	private static final String JGZY_DATA_IMPORT_PATH = "http://data.eastmoney.com/DataCenter_V3/stock2016/DailyStockListStatistics/pagesize=50,page=%d,sortRule=-1,sortType=PBuy,startDate=%s,endDate=%s,gpfw=0,js=data_tab_1.html?rt=25496064";
	
	private static final String ZLZJ_DATA_IMPORT_PATH = "http://nufm.dfcfw.com/EM_Finance2014NumericApplication/JS.aspx?type=ct&st=(FFRank)&sr=1&p=%d&ps=50&js={pages:(pc),data:[(x)]}&token=894050c76af8597a853f5b408b759f5d&cmd=C._AB&sty=DCFFITAM&rt=50997339";
	
	private static final String REAL_TIME_IMPORT_PATH = "http://nuyd.eastmoney.com/EM_UBG_PositionChangesInterface/api/js?dtformat=HH:mm:ss&js=({data:[(x)],pc:(pc)})&rows=64&9&page=%d&type=&_=1530103581162";
	
	private static final String INDUSTRY_DATA_IMPORT_PATH = "http://nufm.dfcfw.com/EM_Finance2014NumericApplication/JS.aspx?cmd=C._BKHY&type=ct&st=(BalFlowMain)&sr=-1&p=%d&ps=50&js={pages:(pc),data:[(x)]}&token=894050c76af8597a853f5b408b759f5d&sty=DCFFITABK&rt=51008248";
	
	private static final String KP_DATA_IMPORT_PATH = "https://pclhb.kaipanla.com/w1/api/index.php";
	private static final String KP_APP_DATA_IMPORT_PATH = "https://hq.kaipanla.com/w1/api/index.php";
	private static final String KP_APP_DATA_BK_IMPORT_PATH = "https://his.kaipanla.com/w1/api/index.php";
	
	private static final String HSGT_STATS_IMPORT_PATH = "http://dcfm.eastmoney.com/EM_MutiSvcExpandInterface/api/js/get?type=HSGTHIS&token=70f12f2f4f091e459a279469fe49eca5&filter=(MarketType=%d)&js={data:(x),pages:(tp)}&ps=20&p=%d&sr=-1&st=DetailDate&rt=51028958";
	
	private static final String REAL_NEW_PRICE = "http://nufm.dfcfw.com/EM_Finance2014NumericApplication/JS.aspx?&type=CT&sty=GB20GFBTC&st=z&js=((x))&token=4f1862fc3b5e77c150a2b985b12db0fd&cb=&cmd=%s1&_=1531303358145";
	
	private static final String GEGU_MONEY_TOTAL = "http://nufm.dfcfw.com/EM_Finance2014NumericApplication/JS.aspx?type=ct&st=(BalFlowMain)&sr=-1&p=%d&ps=500&js=BaDwMnZA={pages:(pc),data:[(x)]}&token=894050c76af8597a853f5b408b759f5d&cmd=C._AB&sty=DCFFITA&rt=51046384";
	
	private static final String GP_CONCEPT_IMPORT_PATH = "http://nufm.dfcfw.com/EM_Finance2014NumericApplication/JS.aspx?cmd=C._BKGN&type=ct&st=(BalFlowMain)&sr=-1&p=%d&ps=50&js={pages:(pc),data:[(x)]}&token=894050c76af8597a853f5b408b759f5d&sty=DCFFITABK&rt=51069181";
	
	private static final String GP_CONCEPT_DETAIL_IMPORT_PATH = "http://nufm.dfcfw.com/EM_Finance2014NumericApplication/JS.aspx?type=CT&token=4f1862fc3b5e77c150a2b985b12db0fd&js={pages:(pc),data:[(x)]}&sty=FCOIATC&cmd=C.%s&st=(ChangePercent)&sr=-1&p=%d&ps=50&_=1532075775811";
	
	private static final String GP_REMARK_IMPORT_PATH = "http://api.quchaogu.com/dxwapp/lhb/reviews?apiversion=6.2&dxww=2018%s10_f434209fa9";
	
	private static final String GP_JJ_IMPORT_PATH = "http://api.quchaogu.com/lhbapp/jihejingjia/chart?apiversion=6.3&code=%s&date=%s&day=%s&dxww=%s10_5dd57922c2&symbol=%s";

	private static final String DBQ_IMPORT_PATH = "http://api.quchaogu.com/community/topic/detail?apiversion=6.3&topic_id=%d";

	public static final String getDbqPathStr(int id){
		return String.format(DBQ_IMPORT_PATH,id);
	}

	public static final String getWtPathStr(String code,int page){
		return String.format(GPC_WT_PATH,code,page);
	}
	
	public static final String getPricePathStr(String code){
		return String.format(IMPORT_PRICE_PATH,code);
	}
	
	public static final String getJJPathStr(String code,String date){
		return String.format(GP_JJ_IMPORT_PATH,code,date,date,date,code);
	}
	public static final String getConCeptDetailPathStr(String code,int page){
		return String.format(GP_CONCEPT_DETAIL_IMPORT_PATH,code,page);
	}
	
	public static final String getRemarkPathStr(String time){
		return String.format(GP_REMARK_IMPORT_PATH,time);
	}
	
	public static final String getConCeptPathStr(int page){
		return String.format(GP_CONCEPT_IMPORT_PATH,page);
	}
	
	public static final String getGeguMoneyTotal(int page){
		return String.format(GEGU_MONEY_TOTAL,page);
	}
	
	public static final String getRealNewPrice(String dm){
		return String.format(REAL_NEW_PRICE,dm);
	}
	
	public static final String getHsgtStatsPathStr(int page,int type){
		return String.format(HSGT_STATS_IMPORT_PATH,type,page);
	}
	
	public static final String getKpDataPathStr(){
		return KP_DATA_IMPORT_PATH;
	}

	public static final String getBkKpDataPathStr(){
		return KP_APP_DATA_BK_IMPORT_PATH;
	}
	
	public static final String getKpAppDataPathStr(){
		return KP_APP_DATA_IMPORT_PATH;
	}
	
	public static final String getIndustryDataPathStr(int page){
		return String.format(INDUSTRY_DATA_IMPORT_PATH,page);
	}
	
	public static final String getReadTimeDataPathStr(int page){
		return String.format(REAL_TIME_IMPORT_PATH,page);
	}
	
	public static String getZlzjDataPathStr(int page){
		return String.format(ZLZJ_DATA_IMPORT_PATH, page);
	}
	
	public static String getJgzyDataPathStr(int page,String startDate,String endDate){
		return String.format(JGZY_DATA_IMPORT_PATH, page,startDate,endDate);
	}
	
	public static String getHsgtDataPathStr(int page,int code){
		return String.format(HSGT_DATA_IMPORT_PATH, page,code);
	}
	
	public static String getNewPriceDataPathStr(int page){
		return String.format(NEWPRICE_DATA_IMPORT_PATH, page);
	}
	
	public static String getDJGDataPathStr(int page,String dm){
		return String.format(DJG_DATA_IMPORT_PATH, page, dm);
	}
	
	public static String getControlDataPathStr(int page){
		return String.format(CONTROL_DATA_IMPORT_PATH, page );
	}
	
	public static String getYidianRSPathStr(String dm){
		return String.format(YIDIAN_RS_IMPORT_PATH, dm );
	}
	
	public static String getYidianLTGDPathStr(String dm,String date){
		return String.format(YIDIAN_LTGD_IMPORT_PATH, dm, date);
	}
	
	public static String getFormatAuthorityGroupPathStr(GpType type, int page) {
		return String.format(IMPORT_PATH, type.getCode(), page);
	}
	
	public static String getFormatGdPathStr(String dm,String date,ZgpType zgpType){
		return String.format(GD_IMPORT_PATH, dm, date, zgpType.getMessage());
	}
	
	public static String getFormatBrankPathStr(int page,String startTime,String endTime){
		return String.format(BRANK_IMPORT_PATH, page, startTime,endTime);
	}
	
	public static String getFormatHyBrankPathStr(int page,String startDate,String endDate){
		return String.format(HY_BRANK_IMPORT_PATH, page,startDate,endDate);
	}
	
	public static String getFormatHyBrankDetailPathStr(int page,int code){
		return String.format(HY_BRANK_IMPORT_DETAIL_PATH, page,code);
	}
	
	public static String getFormatDtGudongPathStr(String code,String date){
		return String.format(DT_GD_IMPORT_PATH, code,date);
	}
	
	public static String getFormatDayMacdPathStr(){
		return DAY_MACD_IMPORT_PATH;
	}
	
	public static String getFormatDayKdjPathStr(){
		return DAY_KDJ_IMPORT_PATH;
	}
	
	public static String getFormatDayMacdKdjPathStr(){
		return DAY_MACD_KDJ_IMPORT_PATH;
	}
}
